import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('TimerManagerNode')
export class TimerManagerNode extends Component {
    protected onLoad(): void {
        console.log("TimerManagerNode 时间管理器已创建成功!");
    }

    SetTimer(reference: object, time: number, callBack: () => void) {
        this.scheduleOnce(function(){
            if(Object!=null)
                callBack();
         },time)
    }
}


